/*******************************************************************************
 * dashboard_scripts.js
 * 
 * @author 				Joe Cianflone
 * @version 			2.0
 * @copyright 			CC, Creative Commons Attribution-ShareAlike 3.0 Unported -- http://creativecommons.org/licenses/by-sa/3.0/
 * @projectDescription 	This is the place where we throw this particular projects
 * 						functions.   
 ******************************************************************************/

Event.observe(window, 'load', function() {
	externalLinks();
	copyright('siteInfo','Temel Inc.')
	var droppers = document.getElementsByClassName('drop');
	for (var i=0, len=droppers.length; i < len; ++i) {
		Event.observe (droppers[i], 'click', toggleSitemap, false);
	}//for...
}, false);

function toggleSitemap(evt) {
	var element = Event.element(evt);
	element = element.up();
	if (element.readAttribute('class')=='headline') {
		element.removeClassName('headline');
		element.addClassName('headline_selected');		
	}//if...
	else {
		element.removeClassName('headline_selected');
		element.addClassName('headline');		
	}//else...

	toggleChild(evt);
}//toggleSitemap()...